﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
using System.Data.SqlClient;
using MySql.Data.MySqlClient;

namespace Library.Connection
{
    public class DataBaseConnectivity
    {
        string m_ConnectionString = ConfigurationManager.ConnectionStrings["connStr"].ConnectionString;
        string m_MySqlConnectionString = ConfigurationManager.AppSettings["ConnectionString"];
        public MySqlConnection MySqlConnection;
        public MySqlConnection MySqlConnection_b;
        public SqlConnection SQLConnection;
        public SqlConnection SQLConnection_b;

        public DataBaseConnectivity()
        {
            SQLConnection = new SqlConnection(m_ConnectionString);
            SQLConnection_b = new SqlConnection(m_ConnectionString);

            MySqlConnection = new MySqlConnection(m_MySqlConnectionString);
            MySqlConnection_b = new MySqlConnection(m_MySqlConnectionString);
        }
    }
}